﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000009 RID: 9
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AbilityUseStt : IMessage<AbilityUseStt>, IMessage, IEquatable<AbilityUseStt>, IDeepCloneable<AbilityUseStt>, IBufferMessage
	{
		// Token: 0x17000012 RID: 18
		// (get) Token: 0x06000043 RID: 67 RVA: 0x000029F9 File Offset: 0x00000BF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AbilityUseStt> Parser
		{
			get
			{
				return AbilityUseStt._parser;
			}
		}

		// Token: 0x17000013 RID: 19
		// (get) Token: 0x06000044 RID: 68 RVA: 0x00002A00 File Offset: 0x00000C00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AbilityUseSttReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000014 RID: 20
		// (get) Token: 0x06000045 RID: 69 RVA: 0x00002A12 File Offset: 0x00000C12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AbilityUseStt.Descriptor;
			}
		}

		// Token: 0x06000046 RID: 70 RVA: 0x00002A19 File Offset: 0x00000C19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AbilityUseStt()
		{
		}

		// Token: 0x06000047 RID: 71 RVA: 0x00002A2C File Offset: 0x00000C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AbilityUseStt(AbilityUseStt other) : this()
		{
			this.aADOHPMKANG_ = other.aADOHPMKANG_;
			this.count_ = other.count_;
			this.totalDamage_ = other.totalDamage_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000048 RID: 72 RVA: 0x00002A69 File Offset: 0x00000C69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AbilityUseStt Clone()
		{
			return new AbilityUseStt(this);
		}

		// Token: 0x17000015 RID: 21
		// (get) Token: 0x06000049 RID: 73 RVA: 0x00002A71 File Offset: 0x00000C71
		// (set) Token: 0x0600004A RID: 74 RVA: 0x00002A79 File Offset: 0x00000C79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string AADOHPMKANG
		{
			get
			{
				return this.aADOHPMKANG_;
			}
			set
			{
				this.aADOHPMKANG_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17000016 RID: 22
		// (get) Token: 0x0600004B RID: 75 RVA: 0x00002A8C File Offset: 0x00000C8C
		// (set) Token: 0x0600004C RID: 76 RVA: 0x00002A94 File Offset: 0x00000C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x17000017 RID: 23
		// (get) Token: 0x0600004D RID: 77 RVA: 0x00002A9D File Offset: 0x00000C9D
		// (set) Token: 0x0600004E RID: 78 RVA: 0x00002AA5 File Offset: 0x00000CA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double TotalDamage
		{
			get
			{
				return this.totalDamage_;
			}
			set
			{
				this.totalDamage_ = value;
			}
		}

		// Token: 0x0600004F RID: 79 RVA: 0x00002AAE File Offset: 0x00000CAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AbilityUseStt);
		}

		// Token: 0x06000050 RID: 80 RVA: 0x00002ABC File Offset: 0x00000CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AbilityUseStt other)
		{
			return other != null && (other == this || (!(this.AADOHPMKANG != other.AADOHPMKANG) && this.Count == other.Count && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.TotalDamage, other.TotalDamage) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000051 RID: 81 RVA: 0x00002B24 File Offset: 0x00000D24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AADOHPMKANG.Length != 0)
			{
				num ^= this.AADOHPMKANG.GetHashCode();
			}
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this.TotalDamage != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.TotalDamage);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000052 RID: 82 RVA: 0x00002BA2 File Offset: 0x00000DA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000053 RID: 83 RVA: 0x00002BAA File Offset: 0x00000DAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000054 RID: 84 RVA: 0x00002BB4 File Offset: 0x00000DB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AADOHPMKANG.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.AADOHPMKANG);
			}
			if (this.Count != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Count);
			}
			if (this.TotalDamage != 0.0)
			{
				output.WriteRawTag(25);
				output.WriteDouble(this.TotalDamage);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000055 RID: 85 RVA: 0x00002C38 File Offset: 0x00000E38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AADOHPMKANG.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.AADOHPMKANG);
			}
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this.TotalDamage != 0.0)
			{
				num += 9;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000056 RID: 86 RVA: 0x00002CAC File Offset: 0x00000EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AbilityUseStt other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AADOHPMKANG.Length != 0)
			{
				this.AADOHPMKANG = other.AADOHPMKANG;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			if (other.TotalDamage != 0.0)
			{
				this.TotalDamage = other.TotalDamage;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000057 RID: 87 RVA: 0x00002D1E File Offset: 0x00000F1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000058 RID: 88 RVA: 0x00002D28 File Offset: 0x00000F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 16U)
					{
						if (num != 25U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.TotalDamage = input.ReadDouble();
						}
					}
					else
					{
						this.Count = input.ReadUInt32();
					}
				}
				else
				{
					this.AADOHPMKANG = input.ReadString();
				}
			}
		}

		// Token: 0x04000014 RID: 20
		private static readonly MessageParser<AbilityUseStt> _parser = new MessageParser<AbilityUseStt>(() => new AbilityUseStt());

		// Token: 0x04000015 RID: 21
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000016 RID: 22
		public const int AADOHPMKANGFieldNumber = 1;

		// Token: 0x04000017 RID: 23
		private string aADOHPMKANG_ = "";

		// Token: 0x04000018 RID: 24
		public const int CountFieldNumber = 2;

		// Token: 0x04000019 RID: 25
		private uint count_;

		// Token: 0x0400001A RID: 26
		public const int TotalDamageFieldNumber = 3;

		// Token: 0x0400001B RID: 27
		private double totalDamage_;
	}
}
